package oop.Demo02;

import oop.Demo02.Person;

//一个项目只存在一个main方法
public class Application {
    public static void main(String[] args) {
        oop.Demo02.Person person = new oop.Demo02.Person("jmz");
        System.out.println(person.name);
        oop.Demo02.Person person1 = new Person();
        System.out.println(person1.name);

    }

}
/*
        //类是抽象的，需要实例化
        //类实例化后会返回一个自己的对象
        Student kml = new Student();
        kml.name="kml";
        kml.age=19;
        System.out.println(kml.name);
        System.out.println(kml.age);
        */